home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / mus / play / sparctracker100.lha / SparcTracker / libaudio.h < prev    next >
C/C++ Source or Header  |  1992-10-28  |  972b  |  40 lines

  1. /*    @(#)libaudio.h 1.2 90/01/03 SMI    */
  2. /* Copyright (c) 1989 by Sun Microsystems, Inc. */
  3.  
  4. #ifndef _multimedia_libaudio_h
  5. #define    _multimedia_libaudio_h
  6.  
  7. #include "audio_errno.h"
  8. #include "audio_hdr.h"
  9.  
  10. /* define various constants for general use */
  11.  
  12. /* Theoretical maximum length of hh:mm:ss.dd string */
  13. #define    AUDIO_MAX_TIMEVAL    (32)
  14.  
  15. /* Theoretical maximum length of encoding information string */
  16. #define    AUDIO_MAX_ENCODE_INFO    (80)
  17.  
  18.  
  19. /* Why aren't these stupid values defined in a standard place?! */
  20. #ifndef TRUE
  21. #define    TRUE    (1)
  22. #endif
  23. #ifndef FALSE
  24. #define    FALSE    (0)
  25. #endif
  26. #ifndef NULL
  27. #define    NULL    0
  28. #endif
  29.  
  30.  
  31. /* Declare routines that return non-int values */
  32.  
  33. extern double    audio_bytes_to_secs(/* Audio_hdr *hp, unsigned cnt */);
  34. extern unsigned    audio_secs_to_bytes(/* Audio_hdr *hp, double sec */);
  35. extern double    audio_str_to_secs(/* char *str */);
  36. extern char    *audio_secs_to_str(/* double sec, char *str, int precision */);
  37.  
  38.  
  39. #endif /*!_multimedia_libaudio_h*/
  40.